import Vue from 'vue'
import Router from 'vue-router'
import TestEcharts from '../components/TestEcharts.vue'
import Login from "../components/Login";
import Home from "../components/Home";
import AdminList from "../components/admin/AdminList";
import SellerList from "../components/seller/SellerList";
import TeacherList from "../components/teacher/TeacherList";
import StudentList from "../components/student/StudentList";
import SubjectList from "../components/subject/SubjectList";
import Index from "../components/Index";
import RecordList from "../components/record/RecordList";
import ClassList from "../components/class/ClassList";


Vue.use(Router)

const router = new Router({
        routes: [
            /*{path: '/',name: 'Login',component: HelloWorld},*/
            {path: '/echarts',name: 'TestEcharts',component: TestEcharts},
            {path: '/',name: 'Login',component: Login},
            {path: '/index',name: 'Index',component: Index},
            {path: '/home',name: 'Home',component: Home,children:[
                    {path: '/adminList',name: 'adminList',component: AdminList},
                    {path: '/sellerList',name: 'sellerList',component: SellerList},
                    {path: '/teacherList',name: 'teacherList',component: TeacherList},
                    {path: '/studentList',name: 'studentList',component: StudentList},
                    {path: '/subjectList',name: 'SubjectList',component: SubjectList},
                    {path: '/recordList',name: 'RecordList',component: RecordList},
                    {path: '/classList',name: 'ClassList',component: ClassList},
                ]
            },
        ],
})

export default router
